import os
from collections import Counter
c=Counter()
d={}
for fname in os.listdir('D:\\Work\\Tool\\tiktok\\TikToks\\'):
    l=fname.replace('.json','').split('_')
    if l[0]=='Hashtag':
        if len(l)<4:
            continue
        if l[3]=='t':
            c[l[1]] += 1
        elif int(l[3])>0:
            c[l[1]]+=1
for key in c.most_common():
    print(key)